import Vue from 'vue'
import App from './App.vue'
import ViewUI from 'view-design'

//自定义主题
import '../my-theme/index.less';
import '@/icons' // 引入svg配置

import '@/permission' // permission control

import echarts from "echarts"

Vue.prototype.$echarts = echarts

import router from './router'
import store from './store'

//router报错！
import Router from 'vue-router'
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return routerPush.call(this, location).catch(error => error)
}

Vue.use(ViewUI);
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})